package com.hula.onion.book.server.service.impl;

import com.hula.onion.book.server.dao.IRefundDao;
import com.hula.onion.book.server.model.RefundDetailInfo;
import com.hula.onion.book.server.model.RefundInfo;
import com.hula.onion.book.server.service.RefundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by work on 2018/3/26.
 */
@Service
public class RefundServiceImpl implements RefundService {

    @Autowired
    private IRefundDao refundDao;

    @Override
    public List<RefundInfo> getRefundList(int page, int size) {
        return refundDao.getRefundList(page, size);
    }

    @Override
    public RefundDetailInfo getRefundDetail(int id) {
        return refundDao.getRefundDetail(id);
    }
}
